I think I'm building my dataframe in a bad way